package com.yf.anno;
 
import com.yf.valid.TextAuditValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;
 
import java.lang.annotation.*;
 
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = {TextAuditValidator.class})
@Target({ElementType.METHOD, ElementType.FIELD,
        ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR,
        ElementType.PARAMETER, ElementType.TYPE_USE})
public @interface TextAudit {
    String message() default "文本存在不合法字样";
 
    Class<?>[] groups() default {};
 
    Class<? extends Payload>[] payload() default {};
}